package drds.binlog.common.alarm;

import drds.binlog.common.AbstractLifeCycle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 基于log的alarm机制实现
 */
public class LogAlarmHandler extends AbstractLifeCycle implements AlarmHandler
{

    private static final Logger logger = LoggerFactory.getLogger(LogAlarmHandler.class);

    public void sendAlarm(String destination, String msg)
    {
        logger.error("destination:{}[{}]", new Object[]{destination, msg});
    }

}
